package com.diapoclic.entity;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the Friend database table.
 * 
 */
@Entity
public class Friend implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="id_f")
	private int idF;

	@Column(name="id_friend")
	private int idFriend;

	@Column(name="login_friend")
	private String loginFriend;

	//bi-directional many-to-one association to User
    @ManyToOne
	@JoinColumn(name="id_user")
	private User user;

    public Friend() {
    }

	public int getIdF() {
		return this.idF;
	}

	public void setIdF(int idF) {
		this.idF = idF;
	}

	public int getIdFriend() {
		return this.idFriend;
	}

	public void setIdFriend(int idFriend) {
		this.idFriend = idFriend;
	}

	public String getLoginFriend() {
		return this.loginFriend;
	}

	public void setLoginFriend(String loginFriend) {
		this.loginFriend = loginFriend;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
}